/*
 *	File: StringHelper.h
 *	Version: 1.0
 *	Desc:
 *	History:
 *	1. 2011-09-12, Created, zwx
 *	*/

#ifndef STRINGHELPER_H_
#define STRINGHELPER_H_

#include "../Entity/Document.h"

using namespace std;

class StringHelper {
public:
	StringHelper();
	virtual ~StringHelper();
	void static toLowerCase(string& str);
	string itos(int num);
	void removeNonAlphaNumLeftRight(string& token);
	int locateLastCharacter(char* s, char c);
	size_t mergeStrings(char* s1, char*s2, char* buf, size_t buf_offset);
	bool isCharacter(char c);
	string removeExtension(string s, string delimiter);
	bool isValidString(char* s);
};

#endif /* STRINGHELPER_H_ */
